package com.springboot.cloud.sysadmin.organization.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseQueryForm;
import com.springboot.cloud.sysadmin.organization.entity.param.NoticeQueryParam;
import com.springboot.cloud.sysadmin.organization.entity.param.PositionQueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Past;
import java.util.Date;
import java.util.List;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@ApiModel
@Data
public class NoticeQueryForm extends BaseQueryForm<NoticeQueryParam> {

    @ApiModelProperty(value = "通知标题")
    private String title;

    @ApiModelProperty(value = "显示顺序")
    private int orderNum;

    @ApiModelProperty(value = "通知类型")
    private String type;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "状态（0正常 1停用）")
    private String status = "0";

    @ApiModelProperty(value = "状态（0正常 1停用）")
    private String deleted = "N";

    @ApiModelProperty(value = "通知描述")
    private String description;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询开始时间必须小于当前日期")
    @ApiModelProperty(value = "查询开始时间")
    private Date createdTimeStart;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询结束时间必须小于当前日期")
    @ApiModelProperty(value = "查询结束时间")
    private Date createdTimeEnd;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private List<Date> createdTime;

}
